// -----------------------------------------------------------------------------
// DM 是 .NET 5 平台下开发管理的系统。
// Copyright © 2021 DM,  Co.,Ltd.
//
// 框架名称：Furion
// 后台框架：ABC.Admin
// -----------------------------------------------------------------------------

using Furion.TaskScheduler;

namespace Abc.Application.Scheduler
{
    public class TimerJob : ISpareTimeWorker
    {
        /// <summary>
        /// 3s 后执行
        /// </summary>
        /// <param name="timer"></param>
        /// <param name="count"></param>
        [SpareTime(1000, "TimerJob", DoOnce = false, StartNow = true)]
        public void DoSomething(SpareTimer timer, long count)
        {
            // Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            WebGloble.SysRunSeconds++;
        }
    }
}